const Controller = require('egg').Controller

class CommentController extends Controller {
  async updateComment() {
    const { ctx } = this
    const res = await ctx.service.crawler.courseComment.index(ctx.request.body.courseId)
    if (res) {
      return ctx.renderBack(null, '1', '更新成功')
    }
  }
}

module.exports = CommentController
